﻿using Emgu.CV.Structure;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 仪表识别2
{
    class AppConstant
    {
        //是否显示放大镜
        public static bool showMannify = false;

        public static Color choseColor = new Color();

        public static bool markModel = false;
        public static int markTimes= 0;

        public static bool pointerMarkModel = false;
        public static int pointerMarkTimes = 0;

        public static bool testClockDial = false;

        public static int delay = 50;

        public static bool isVedio = false;

        public static ScaleLocationType scaleLocationType = ScaleLocationType.MARK;
        public static PointerLocationType pointerLocationType = PointerLocationType.RGS;
        //刻度定位方式
        public enum ScaleLocationType
        {
            AUTO=1,MARK=2
        }
        //指针定位方式
        public enum PointerLocationType
        {
            RGS=1,CTM=2,Hough=3
        }
        //用于取消任务执行，跳出循环
        public static bool isCancel = false;

        public static int runState = 0;//0未启动，1已打开摄像头或视频，2正在识别，3暂停


        public static bool choseRec = false;
    }
}
